package com.zhangwei.liwushuo.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * @说 明：
 * @项目名称：LiWuShuo
 * @包 名： com.zhangwei.liwushuo.bean
 * @类 名： Category
 * @创 建人： zhangwei
 * @创建时间：2015-08-14 20:57
 * @版 本：v1.0
 * @修 改人：
 * @修改时间：
 * @修改备注：
 */

public class CategoryEntity {
    /**
     * id : 4
     * order : 8
     * status : 0
     * name : 美味厨房
     * icon_url : http://img03.liwushuo.com/image/150427/qk1wazhvq.png-pw144
     * subcategories : [{"id":30,"items_count":166,"order":0,"status":0,"name":"保温杯/便当盒","icon_url":"http://img02.liwushuo.com/image/150615/2ep8pn54p.png-pw144","parent_id":4},{"id":31,"items_count":508,"order":0,"status":0,"name":"杯子","icon_url":"http://img01.liwushuo.com/image/150615/9twbl537b.png-pw144","parent_id":4},{"id":32,"items_count":389,"order":0,"status":0,"name":"餐具","icon_url":"http://img01.liwushuo.com/image/150615/zdve42knm.png-pw144","parent_id":4},{"id":33,"items_count":201,"order":0,"status":0,"name":"吃货神器","icon_url":"http://img02.liwushuo.com/image/150615/o0rddf4if.png-pw144","parent_id":4},{"id":34,"items_count":172,"order":0,"status":0,"name":"厨具","icon_url":"http://img01.liwushuo.com/image/150615/x8qnoc2js.png-pw144","parent_id":4},{"id":35,"items_count":91,"order":0,"status":0,"name":"烘焙道具","icon_url":"http://img03.liwushuo.com/image/150615/wp808rzwm.png-pw144","parent_id":4},{"id":38,"items_count":155,"order":0,"status":0,"name":"酒具/茶具","icon_url":"http://img02.liwushuo.com/image/150615/vog9lruq6.png-pw144","parent_id":4}]
     */
    private int id;
    private int order;
    private int status;
    private String name;
    @SerializedName("icon_url")
    private String icon;
    private List<SubcategoriesEntity> subcategories;

    public void setId(int id) {
        this.id = id;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public void setSubcategories(List<SubcategoriesEntity> subcategories) {
        this.subcategories = subcategories;
    }

    public int getId() {
        return id;
    }

    public int getOrder() {
        return order;
    }

    public int getStatus() {
        return status;
    }

    public String getName() {
        return name;
    }


    public List<SubcategoriesEntity> getSubcategories() {
        return subcategories;
    }

    public class SubcategoriesEntity implements Serializable {
        /**
         * id : 30
         * items_count : 166
         * order : 0
         * status : 0
         * name : 保温杯/便当盒
         * icon_url : http://img02.liwushuo.com/image/150615/2ep8pn54p.png-pw144
         * parent_id : 4
         */
        private int id;
        private int items_count;
        private int order;
        private int status;
        private String name;
        private String icon;
        @SerializedName("parent_id")
        private int parentId;

        public void setId(int id) {
            this.id = id;
        }

        public void setItems_count(int items_count) {
            this.items_count = items_count;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public void setName(String name) {
            this.name = name;
        }


        public int getId() {
            return id;
        }

        public int getItems_count() {
            return items_count;
        }

        public int getOrder() {
            return order;
        }

        public int getStatus() {
            return status;
        }

        public String getName() {
            return name;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public int getParentId() {
            return parentId;
        }

        public void setParentId(int parentId) {
            this.parentId = parentId;
        }
    }
}
